import uuid

def MakeEncodeUserName(p_number):
    s_uuid=''.join(str(uuid.uuid4()).split('-'))
    b1=bytes(s_uuid,'ascii')
    b2=bytes(p_number,'ascii')
    num = b1[0] + b1[1] + b1[2] + b1[3] + b1[4] + b1[5]
    if len(p_number) >= 3:
        num = b1[0] + b1[1] + b1[2] + b2[0] + b2[1] + b2[2]
    return s_uuid + '{:0>4d}'.format(((177*num+5166) %10000) )+'01' + p_number

if __name__ == "__main__":
    r = MakeEncodeUserName('18861135575')
    print(r)


